package org.fuys.coder.domain.config.model;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.antisepsis.config
 * @className: AppConfigType
 * @author: WangJing
 * @description: 配置类型枚举
 * @date: 2024/8/30 12:58
 * @version: 1.0
 */
public enum AppConfigType {
    ACTIVITYCONFIG(1){
        @Override
        public String getBeanName() {
            return "activityConfig";
        }
    },
    AUDITCONFIG(2){
        @Override
        public String getBeanName() {
            return "auditConfig";
        }
    },
    RECOMMENDCONFIG(3){
        public String getBeanName(){
            return "recommendConfig";
        }
    },
    SECURITYCONFIG(4){
        @Override
        public String getBeanName() {
            return "securityConfig";
        }
    }

    ;
    int index;
    AppConfigType(int index){
        this.index=index;
    }

    public int getIndex(){
        return index;
    }

    public String getBeanName(){
        return "";
    }

    public static Integer getIdxByName(String name){
        final AppConfigType appConfigType = AppConfigType.valueOf(name.toUpperCase());
        return appConfigType.getIndex();
    }
}
